package com.ilop.sthome.mvp.contract.device;

import com.example.common.mvp.IBasePresenter;
import com.example.common.mvp.IBaseView;
import com.ilop.sthome.data.event.EventRefreshDevice;
import com.ilop.sthome.data.greenDao.DeviceInfoBean;

/**
 * @author skygge
 * @date 2020/4/21.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：温控器
 */
public interface ThermostatContract {

    interface IView extends IBaseView {

        void showStatus(int res, String status);

        void showQuantity(int res, String quantity);

        void showSignal(int res);

        void showWindow(int enable, byte status);

        void showValve(int enable, byte status);

        void showLock(int status);

        void showCurrentMode(int mode);

        void showCurrentTemp(float num, int temp);

        void showFunctionView(int time, int hand, int freeze, float number, int mode);

        void showTipDialog(float num);

        void dismissTip();

        void showOffLine();
    }

    interface IPresent extends IBasePresenter<IView> {

        void getDeviceInfo(DeviceInfoBean deviceInfoBean);

        void refreshStatus(EventRefreshDevice event);

        void analysisStatus(String status);

        void sendCodeToSetting(String code);

        String getSetFrom(int set_temp, int set_temp_decimal, int mode, int valve, int window, int lock);
    }
}
